#include <Windows.h>
#include "CReleasePacket.h"

CReleasePacket::CReleasePacket(CChar * schar) {

	this->type = 0x52;
	this->size = 0x04;
	memset(this->data, 0, sizeof(this->data));

	if(schar->inEvent)
		this->data[0x04-0x04] = 0x01;

}

//Custom release type incase scripters need to override default
CReleasePacket::CReleasePacket(CChar * schar,unsigned char releaseType) {
	this->type = 0x52;
	this->size = 0x04;
	memset(this->data, 0, sizeof(this->data));
	
	this->data[0x04-0x04] = releaseType;
}

CReleasePacket::~CReleasePacket() {

}